<!DOCTYPE html>
<!--suppress ThymeleafVariablesResolveInspection -->
<html lang="en"  xmlns:th="http://www.thymeleaf.org">
<head>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
    <meta charset="UTF-8">
    <title>Title</title>
    <link th:href="@{/local/css/login.css}" rel="stylesheet">
    <link  th:href="@{/local/css/page.css}"  rel="stylesheet">
</head>
<body>

<div id="top" th:include="head.html::top"></div>
<div id="middle">
    <div id="left" th:include="left.html::left"></div>Z
    <div id="right">
        <form action="/admin/gotoAddOrders">
            <input type="submit" value="添加订单">
        </form>
        <div id="msg" th:text="${msg}"></div>
        <table>

            <tr>
                <th>订单ID</th>
                <th>用户ID</th>
                <th>订单时间</th>
                <th>订单总数</th>
            </tr>
            <tr th:each="orders:${ordersListPage.list}">
                <td th:text="${orders.getOid()}"></td>
                <td th:text="${orders.getUsers().getUname()}"></td>
                <td th:text="${orders.getOtime()}"></td>
                <td th:text="${orders.getOtotal()}"></td>


                </td>
                <td>
                    <a th:href="@{/admin/lorderdetail/} + ${orders.getOid()}">订单详情</a>
                    <a th:href="@{/admin/delOrders/} + ${orders.getOid()}">删除</a>
                    <a th:href="@{/admin/orders/} + ${orders.getOid()}">编辑</a>
                </td>

            </tr>


        </table>

        <div th:include="page.html::mypage(orders,${ordersListPage})"></div>


    </div>
</div>
<div id="bottom" th:include="bottom.html::bottom"></div>










</body>
</html>